﻿/*
 * @autor: hectorea
 * @date: 31/07/12
 * @project: MergeSortedArrays
 * 
 */

using System;

namespace Merge2SortedArrays
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array1 = { 1, 4, 9, 100, 0, 0, 0, 0 };
            int[] array2 = { 3, 7, 12, 16 };

            int[] result = MergeSortedArrays.MergeWithoutAdditionalArray(array1, array2);
            //int[] result = MergeSortedArrays.MergeTwoSortedArrays(array1, array2);

            for (int i = 0; i < result.Length; i++)
                Console.Write(" {0 } ", result[i]);

            Console.ReadLine();
            
        }
    }
}
